import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/pages/index/Index'



Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index,
      redirect: '/page',
      children: [
        {
          path: 'page',
          name: 'page',
          component: () => import('contents/page/Page')
        },
        {
          path: 'question',
          name: 'question',
          component: () => import('contents/question/Question')
        },
        {
          path: 'app',
          name: 'app',
          component: () => import('contents/app/App')
        },
        {
          path: 'appKind',
          name: 'appKind',
          component: () => import('contents/appKind/AppKind')
        },
        {
          path: 'certifyNeed',
          name: 'certifyNeed',
          component: () => import('contents/certifyNeed/CertifyNeed')
        },
        {
          path: 'userInfo',
          name: 'userInfo',
          component: () => import('contents/userInfo/UserInfo')
        },
        {
          path: 'cashNote',
          name: 'cashNote',
          component: () => import('contents/cashNote/CashNote')
        },
        {
          path: 'answer',
          name: 'answer',
          component: () => import('contents/answer/Answer')
        },
        {
          path: 'check',
          name: 'check',
          component: () => import('contents/check/Check')
        },
        {
          path: 'expert',
          name: 'expert',
          component: () => import('contents/expert/Expert')
        }
      ]
      
    }
  ]
})
